<?php

session_start();
// 定义网站根目录
defined('SITE_ROOT') || define('SITE_ROOT', realpath(dirname(__FILE__)));

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(SITE_ROOT . '/app'));
    
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    get_include_path(),
)));

// Lin_Application */
require_once 'Lin/Application.php';

$app = new Lin_Application();
$app->bootstrap()
	->run(); 